home *** CD-ROM | disk | FTP | other *** search
/ Delphi Programmer's Power Pack / Delphi Volume 1.iso / e_to_l / fbuilder / delphi / demos / vendorfm.dfm / vendorfm.txt
Encoding:
Text File  |  1996-09-15  |  10.1 KB  |  452 lines

  1. object Vendorfrm: TVendorfrm
  2.   Left = 53
  3.   Top = 58
  4.   Width = 546
  5.   Height = 391
  6.   ActiveControl = Panel1
  7.   BorderIcons = [biSystemMenu, biMinimize]
  8.   Caption = 'Database Expression Example'
  9.   Font.Color = clBlack
  10.   Font.Height = -11
  11.   Font.Name = 'MS Sans Serif'
  12.   Font.Pitch = fpVariable
  13.   Font.Style = []
  14.   PixelsPerInch = 96
  15.   Position = poScreenCenter
  16.   OnCreate = FormCreate
  17.   TextHeight = 13
  18.   object Panel1: TPanel
  19.     Left = 0
  20.     Top = 0
  21.     Width = 538
  22.     Height = 41
  23.     Align = alTop
  24.     TabOrder = 0
  25.     object Label12: TLabel
  26.       Left = 8
  27.       Top = 1
  28.       Width = 106
  29.       Height = 32
  30.       Caption = 'Vendors'
  31.       Color = clBtnFace
  32.       Font.Color = clMaroon
  33.       Font.Height = -27
  34.       Font.Name = 'Arial'
  35.       Font.Style = [fsBold, fsItalic]
  36.       ParentColor = False
  37.       ParentFont = False
  38.     end
  39.     object DBNavigator: TDBNavigator
  40.       Left = 128
  41.       Top = 8
  42.       Width = 221
  43.       Height = 25
  44.       DataSource = DataSource1
  45.       Ctl3D = False
  46.       ParentCtl3D = False
  47.       TabOrder = 0
  48.     end
  49.     object BitBtn2: TBitBtn
  50.       Left = 439
  51.       Top = 8
  52.       Width = 72
  53.       Height = 27
  54.       TabOrder = 1
  55.       Kind = bkClose
  56.     end
  57.   end
  58.   object Panel2: TPanel
  59.     Left = 0
  60.     Top = 41
  61.     Width = 538
  62.     Height = 184
  63.     Align = alTop
  64.     BevelInner = bvLowered
  65.     BorderWidth = 4
  66.     Caption = 'Panel2'
  67.     TabOrder = 1
  68.     object ScrollBox: TScrollBox
  69.       Left = 6
  70.       Top = 6
  71.       Width = 526
  72.       Height = 172
  73.       HorzScrollBar.Margin = 6
  74.       HorzScrollBar.Range = 318
  75.       VertScrollBar.Margin = 6
  76.       VertScrollBar.Range = 160
  77.       Align = alClient
  78.       AutoScroll = False
  79.       BorderStyle = bsNone
  80.       TabOrder = 0
  81.       object Label1: TLabel
  82.         Left = 6
  83.         Top = 6
  84.         Width = 48
  85.         Height = 13
  86.         Caption = 'VendorNo'
  87.         FocusControl = EditVendorNo
  88.       end
  89.       object Label2: TLabel
  90.         Left = 62
  91.         Top = 6
  92.         Width = 62
  93.         Height = 13
  94.         Caption = 'VendorName'
  95.         FocusControl = EditVendorName
  96.       end
  97.       object Label3: TLabel
  98.         Left = 6
  99.         Top = 44
  100.         Width = 44
  101.         Height = 13
  102.         Caption = 'Address1'
  103.         FocusControl = EditAddress
  104.       end
  105.       object Label4: TLabel
  106.         Left = 162
  107.         Top = 44
  108.         Width = 44
  109.         Height = 13
  110.         Caption = 'Address2'
  111.         FocusControl = EditAddress2
  112.       end
  113.       object Label5: TLabel
  114.         Left = 6
  115.         Top = 82
  116.         Width = 17
  117.         Height = 13
  118.         Caption = 'City'
  119.         FocusControl = EditCity
  120.       end
  121.       object Label6: TLabel
  122.         Left = 112
  123.         Top = 82
  124.         Width = 25
  125.         Height = 13
  126.         Caption = 'State'
  127.         FocusControl = EditState
  128.       end
  129.       object Label7: TLabel
  130.         Left = 218
  131.         Top = 82
  132.         Width = 15
  133.         Height = 13
  134.         Caption = 'Zip'
  135.         FocusControl = EditZip
  136.       end
  137.       object Label8: TLabel
  138.         Left = 6
  139.         Top = 120
  140.         Width = 36
  141.         Height = 13
  142.         Caption = 'Country'
  143.         FocusControl = EditCountry
  144.       end
  145.       object Label9: TLabel
  146.         Left = 87
  147.         Top = 120
  148.         Width = 31
  149.         Height = 13
  150.         Caption = 'Phone'
  151.         FocusControl = EditPhone
  152.       end
  153.       object Label10: TLabel
  154.         Left = 168
  155.         Top = 120
  156.         Width = 20
  157.         Height = 13
  158.         Caption = 'FAX'
  159.         FocusControl = EditFAX
  160.       end
  161.       object Label11: TLabel
  162.         Left = 249
  163.         Top = 120
  164.         Width = 43
  165.         Height = 13
  166.         Caption = 'Preferred'
  167.         FocusControl = EditPreferred
  168.       end
  169.       object EditVendorNo: TDBEdit
  170.         Left = 6
  171.         Top = 21
  172.         Width = 50
  173.         Height = 20
  174.         DataField = 'VendorNo'
  175.         DataSource = DataSource1
  176.         MaxLength = 0
  177.         TabOrder = 0
  178.       end
  179.       object EditVendorName: TDBEdit
  180.         Left = 62
  181.         Top = 21
  182.         Width = 150
  183.         Height = 20
  184.         DataField = 'VendorName'
  185.         DataSource = DataSource1
  186.         MaxLength = 0
  187.         TabOrder = 1
  188.       end
  189.       object EditAddress: TDBEdit
  190.         Left = 6
  191.         Top = 59
  192.         Width = 150
  193.         Height = 20
  194.         DataField = 'Address1'
  195.         DataSource = DataSource1
  196.         MaxLength = 0
  197.         TabOrder = 2
  198.       end
  199.       object EditAddress2: TDBEdit
  200.         Left = 162
  201.         Top = 59
  202.         Width = 150
  203.         Height = 20
  204.         DataField = 'Address2'
  205.         DataSource = DataSource1
  206.         MaxLength = 0
  207.         TabOrder = 3
  208.       end
  209.       object EditCity: TDBEdit
  210.         Left = 6
  211.         Top = 97
  212.         Width = 100
  213.         Height = 20
  214.         DataField = 'City'
  215.         DataSource = DataSource1
  216.         MaxLength = 0
  217.         TabOrder = 4
  218.       end
  219.       object EditState: TDBEdit
  220.         Left = 112
  221.         Top = 97
  222.         Width = 100
  223.         Height = 20
  224.         DataField = 'State'
  225.         DataSource = DataSource1
  226.         MaxLength = 0
  227.         TabOrder = 5
  228.       end
  229.       object EditZip: TDBEdit
  230.         Left = 218
  231.         Top = 97
  232.         Width = 50
  233.         Height = 20
  234.         DataField = 'Zip'
  235.         DataSource = DataSource1
  236.         MaxLength = 0
  237.         TabOrder = 6
  238.       end
  239.       object EditCountry: TDBEdit
  240.         Left = 6
  241.         Top = 135
  242.         Width = 75
  243.         Height = 20
  244.         DataField = 'Country'
  245.         DataSource = DataSource1
  246.         MaxLength = 0
  247.         TabOrder = 7
  248.       end
  249.       object EditPhone: TDBEdit
  250.         Left = 87
  251.         Top = 135
  252.         Width = 75
  253.         Height = 20
  254.         DataField = 'Phone'
  255.         DataSource = DataSource1
  256.         MaxLength = 0
  257.         TabOrder = 8
  258.       end
  259.       object EditFAX: TDBEdit
  260.         Left = 168
  261.         Top = 135
  262.         Width = 75
  263.         Height = 20
  264.         DataField = 'FAX'
  265.         DataSource = DataSource1
  266.         MaxLength = 0
  267.         TabOrder = 9
  268.       end
  269.       object EditPreferred: TDBEdit
  270.         Left = 249
  271.         Top = 135
  272.         Width = 50
  273.         Height = 20
  274.         DataField = 'Preferred'
  275.         DataSource = DataSource1
  276.         MaxLength = 0
  277.         TabOrder = 10
  278.       end
  279.     end
  280.   end
  281.   object Panel3: TPanel
  282.     Left = 0
  283.     Top = 225
  284.     Width = 538
  285.     Height = 96
  286.     Align = alTop
  287.     BevelInner = bvLowered
  288.     BorderWidth = 4
  289.     Caption = 'Panel3'
  290.     TabOrder = 2
  291.     object DBGrid1: TDBGrid
  292.       Left = 6
  293.       Top = 6
  294.       Width = 526
  295.       Height = 84
  296.       Align = alClient
  297.       BorderStyle = bsNone
  298.       DataSource = DataSource2
  299.       TabOrder = 0
  300.       TitleFont.Color = clBlack
  301.       TitleFont.Height = -11
  302.       TitleFont.Name = 'MS Sans Serif'
  303.       TitleFont.Pitch = fpVariable
  304.       TitleFont.Style = []
  305.     end
  306.   end
  307.   object ResultPanel: TPanel
  308.     Left = 0
  309.     Top = 321
  310.     Width = 538
  311.     Height = 43
  312.     Align = alClient
  313.     Alignment = taLeftJustify
  314.     TabOrder = 3
  315.     object Label13: TLabel
  316.       Left = 6
  317.       Top = 8
  318.       Width = 43
  319.       Height = 13
  320.       Caption = 'RESULT'
  321.     end
  322.     object ResultEdit: TEdit
  323.       Left = 54
  324.       Top = 8
  325.       Width = 391
  326.       Height = 20
  327.       Enabled = False
  328.       TabOrder = 0
  329.     end
  330.     object BitBtn1: TBitBtn
  331.       Left = 450
  332.       Top = 8
  333.       Width = 79
  334.       Height = 25
  335.       Caption = 'Formula'
  336.       TabOrder = 1
  337.       OnClick = BitBtn1Click
  338.       Glyph.Data = {
  339.         78010000424D7801000000000000760000002800000020000000100000000100
  340.         04000000000000000000120B0000120B00000000000000000000000000000000
  341.         800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
  342.         FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
  343.         333333333333333333333333333333333333333FFFFFFFFFFF33330000000000
  344.         03333377777777777F33333003333330033333377FF333377F33333300333333
  345.         0333333377FF33337F3333333003333303333333377FF3337333333333003333
  346.         333333333377FF3333333333333003333333333333377FF33333333333330033
  347.         3333333333337733333333333330033333333333333773333333333333003333
  348.         33333333337733333F3333333003333303333333377333337F33333300333333
  349.         03333333773333337F33333003333330033333377FFFFFF77F33330000000000
  350.         03333377777777777333333333333333333333333333333333330000}
  351.       NumGlyphs = 2
  352.     end
  353.   end
  354.   object DataSource1: TDataSource
  355.     DataSet = Table1
  356.     Left = 295
  357.     Top = 53
  358.   end
  359.   object DataSource2: TDataSource
  360.     DataSet = Table2
  361.     Left = 349
  362.     Top = 53
  363.   end
  364.   object Table1: TTable
  365.     OnCalcFields = Table1CalcFields
  366.     DatabaseName = 'DBDEMOS'
  367.     TableName = 'vendors.db'
  368.     Left = 268
  369.     Top = 53
  370.     object Table1VendorNo: TFloatField
  371.       FieldName = 'VendorNo'
  372.     end
  373.     object Table1VendorName: TStringField
  374.       FieldName = 'VendorName'
  375.       Size = 30
  376.     end
  377.     object Table1Address1: TStringField
  378.       FieldName = 'Address1'
  379.       Size = 30
  380.     end
  381.     object Table1Address2: TStringField
  382.       FieldName = 'Address2'
  383.       Size = 30
  384.     end
  385.     object Table1City: TStringField
  386.       FieldName = 'City'
  387.     end
  388.     object Table1State: TStringField
  389.       FieldName = 'State'
  390.     end
  391.     object Table1Zip: TStringField
  392.       FieldName = 'Zip'
  393.       Size = 10
  394.     end
  395.     object Table1Country: TStringField
  396.       FieldName = 'Country'
  397.       Size = 15
  398.     end
  399.     object Table1Phone: TStringField
  400.       FieldName = 'Phone'
  401.       Size = 15
  402.     end
  403.     object Table1FAX: TStringField
  404.       FieldName = 'FAX'
  405.       Size = 15
  406.     end
  407.     object Table1Preferred: TBooleanField
  408.       FieldName = 'Preferred'
  409.     end
  410.     object Table1Dummy: TStringField
  411.       Calculated = True
  412.       FieldName = 'Dummy'
  413.       Size = 255
  414.     end
  415.   end
  416.   object Table2: TTable
  417.     DatabaseName = 'DBDEMOS'
  418.     IndexFieldNames = 'VendorNo'
  419.     MasterFields = 'VendorNo'
  420.     MasterSource = DataSource1
  421.     TableName = 'parts.db'
  422.     Left = 322
  423.     Top = 53
  424.     object Table2PartNo: TFloatField
  425.       FieldName = 'PartNo'
  426.     end
  427.     object Table2VendorNo: TFloatField
  428.       FieldName = 'VendorNo'
  429.       ReadOnly = True
  430.       Visible = False
  431.     end
  432.     object Table2Description: TStringField
  433.       FieldName = 'Description'
  434.       Size = 30
  435.     end
  436.     object Table2OnHand: TFloatField
  437.       FieldName = 'OnHand'
  438.     end
  439.     object Table2OnOrder: TFloatField
  440.       FieldName = 'OnOrder'
  441.     end
  442.     object Table2Cost: TCurrencyField
  443.       FieldName = 'Cost'
  444.       Currency = True
  445.     end
  446.     object Table2ListPrice: TCurrencyField
  447.       FieldName = 'ListPrice'
  448.       Currency = True
  449.     end
  450.   end
  451. end
  452.